people1 = [34.2400 35.3470 36.3970 36.9070 37.4970 37.9470 38.5530 37.6980 38.7470 39.0457];
bokuan1 = [4.3 4.7 5.2 6 6.1 6.4 7.3 7.9 8.3 8.5];
people2 = [43.8483 44.0982 44.5306 44.7584 45.3439 45.7628 46.3919 46.6918 47.0512 47.6006];
bokuan2 = [7.7 7.2 7.9 8 8.8 9.2 10.2 10.8 10.9 11.7];
invest = [0.19 0.20 0.21 0.23 0.25 0.25 0.26 0.31 0.32 0.37];
t = 0:9;
y1 = 0.01.*people1+0.01.*bokuan1-0.285;
y2 = 0.045.*people2+0.02.*bokuan2-0.22;
a = polyfit(t,y1,2);
b = polyfit(t,y2,2);
m=-0.0006*(t.^2)+0.0146*t+0.1019;
n=0.0009*(t.^2)+0.0215*t+1.8956;
plot(t,m,'b',t,n,'g','LineWidth',2);
hold on;
legend('Miami','Geneva');
axis([0 50]);
xlabel('t');
ylabel('Infrastructure');
grid on